<?php

class CaseController extends BaseArticleController
{

    protected $layout = 'layouts.master';

    public function view($id)
    {
        return $this->articleView($id, 'news.view', Article::TYPE_CASE);
    }

    /**
     * 搜案列
     */
    public function search()
    {
        $this->layout->content = View::make('case.search');
    }

    /**
     * 案列列表
     */
    public function listCase()
    {
        return $this->getArticleListView('case.list', Article::TYPE_CASE);
    }

    /**
     * 看新闻
     */
    public function listContainer()
    {
        $this->layout->content = View::make('news.list')->with('class_id', Article::TYPE_CASE);
    }

}